/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package com.tencent.albert.weixin.driver.msg.resp;

import com.google.gson.Gson;
import com.tencent.albert.weixin.driver.Constants;
import com.thoughtworks.xstream.XStream;

import java.util.HashMap;
import java.util.Map;

/**
 * 多客服系统
 *
 * @author liufeng
 * @date 2013-05-19
 */
public class TransferServiceRespMessage extends BaseRespMessage {

    public TransferServiceRespMessage() {
        this.setMsgType(Constants.RESP_MESSAGE_TYPE_TRANSFER_SERVICE);
    }

    @Override
    public String toJsonString() {
        Map map = new HashMap();
        map.put("touser", this.getToUserName());
        map.put("msgtype", Constants.RESP_MESSAGE_TYPE_TRANSFER_SERVICE);
        Gson gson = new Gson();
        return gson.toJson(map);
    }

    @Override
    public String toXmlString() {
        XStream x = getXstream();
        x.alias("xml", this.getClass());
        return x.toXML(this);
    }
}  
